<template>
    <div>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="12">
                        <el-form-item label="商户">
                            <div v-html="viewModel.shopName"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="赠送天数">
                            <div v-html="viewModel.day"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="活动类型">
                            <div v-html="viewModel.catalog"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="状态">
                            <div v-html="viewModel.status"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="拉新返利金额">
                            <div v-html="viewModel.rewardMoney"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="返现金">
                            <div v-html="viewModel.backMoney"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="二级拉新返利金额">
                            <div v-html="viewModel.rewardMoney2"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="二级返现金">
                            <div v-html="viewModel.backMoney2"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="奖励">
                            <div v-html="viewModel.reward"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script>
    import common from "@/mixins/common.js";

    export default {
        name: "invitation_view",
        mixins: [common],
        data() {
            return {
                viewModel: {},
                activeIndex: "1"
            }
        },
        async mounted() {
            let id = this.$route.query.id;
            let data = {};
            data.id = id;
            let res = await this.$http.form("/invitation/view", data);
            if (res.code === 200) {
                this.viewModel = res.data;
            }
        }
    }
</script>

<style scoped>

</style>